package com.cqw.controller;

import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.IOException;
import java.io.InputStream;

/**
 * @Author: caoqingwen
 * @CreateTime: 2021-07-01 15:14
 * @Description:
 */
@RequestMapping("/es")
@Slf4j
public class EsController {


    public static void main(String[] args) {
        String path = "";
        try {
            InputStream inputStream = Resources.getResourceAsStream(path);

            SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);

            SqlSession sqlSession = sqlSessionFactory.openSession();





        } catch (IOException e) {
            e.printStackTrace();
        }


    }

    









}
